projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
508d856
)
efi_loader: build CRT0 and RELOC on x86_64
author
Heinrich Schuchardt
<
[email protected]
>
Fri, 18 May 2018 17:12:20 +0000
(19:12 +0200)
committer
Alexander Graf
<
[email protected]
>
Sun, 3 Jun 2018 13:27:20 +0000
(15:27 +0200)
The efi selftest and the hello application require CRT0 and RELOC to be
built.
Signed-off-by: Heinrich Schuchardt <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Alexander Graf <
[email protected]
>
arch/x86/lib/Makefile
patch
|
blob
|
history
diff --git
a/arch/x86/lib/Makefile
b/arch/x86/lib/Makefile
index 51d451f9522be6fca84aadcd20840da275e2355f..5a64f6eddc7521199f8deb52db86cedf213c05b5 100644
(file)
--- a/
arch/x86/lib/Makefile
+++ b/
arch/x86/lib/Makefile
@@
-68,8
+68,18
@@
extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
endif
-ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
+ifdef CONFIG_EFI_STUB
+
ifeq ($(CONFIG_$(SPL_)X86_64),)
extra-y += $(EFI_CRT0) $(EFI_RELOC)
endif
+
+else
+
+ifndef CONFIG_SPL_BUILD
+ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
+extra-y += $(EFI_CRT0) $(EFI_RELOC)
+endif
+endif
+
endif